<template>
  <el-row style="font-size: 14px">
    <el-col :span="5">
      <div
        class="top"
        :class="{ top1: top === 1, top2: top === 2, top3: top === 3 }"
      >
        {{ top }}
      </div>
    </el-col>
    <el-col :span="13">
      <div class="sku-name">{{ title }}</div>
    </el-col>
    <el-col :span="6">
      <div class="count">{{ count }}</div>
    </el-col>
  </el-row>
</template>

<script>
export default {
  props: {
    top: {
      type: Number
    },
    title: {
      type: String
    },
    count: {
      type: Number
    }
  }
}
</script>

<style lang="scss" scoped>
.top {
  display: inline-block;
  width: 16px;
  height: 20px;
  margin-left: 10px;
  background: url();
  text-align: center;
  font-size: 12px;
  font-weight: 400;
  color: #e9b499;
  line-height: 14px;
}
.top1 {
  width: 21px;
  height: 20px;
  background: url();
  color: #8e5900;
}
.top2 {
  width: 21px;
  height: 20px;
  background: url();
  color: #494949;
}
.top3 {
  width: 21px;
  height: 20px;
  background: url();
  color: #cf6d3d;
}
.sku-name {
  height: 20px;
  font-weight: 500;
  color: #333;
  line-height: 20px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.count {
  height: 20px;
  font-weight: 400;
  color: #737589;
  line-height: 20px;
  text-align: right;
}
</style>
